import api from '@/api/index.ts'

// 获取落地页列表
export function GetData(params: any) {
  // console.log(params)
  return api.get('/api/landingpage/list', { params })
}

// 添加落地页
export function PostAddLandingpage(params: any) {
  return api.post(`/api/landingpage/create`, params)
}

// 获取落地页详细数据
export function GetDataDetail(id: string) {
  return api.get(`/api/landingpage/detail/${id}`)
}

// 编辑落地页
export function PutLandingpage(params: any) {
  return api.put(`/api/landingpage/modify`, params)
}

// 更改落地页状态
export function patchLandingpageType(params: any) {
  return api.patch(`/api/landingpage/modifystatus`, params)
}
